<html>
 <head>
  <meta charset="UTF-8">
 </head>
 <body>
  <h1 data-lake-id="XcAMn" id="XcAMn"><span data-lake-id="u112806c6" id="u112806c6">典型回答</span></h1>
  <p data-lake-id="u03dd63c2" id="u03dd63c2"><br></p>
  <p data-lake-id="udc535821" id="udc535821"><span data-lake-id="u9e4063a9" id="u9e4063a9">Hystrix和Sentinel都是SpringCloud中可以用来做限流、降级的组件。</span></p>
  <p data-lake-id="u69319da8" id="u69319da8"><span data-lake-id="uf911a8c7" id="uf911a8c7">​</span><br></p>
  <p data-lake-id="uc8f4385f" id="uc8f4385f"><span data-lake-id="u474508e7" id="u474508e7">Hystrix 的关注点在于以 隔离 和 熔断 为主的容错机制，超时或被熔断的调用将会快速失败，并可以提供 fallback 机制。而 Sentinel 的侧重点在于多样化的流量控制、熔断降级、系统负载保护以及实时监控和控制台。</span></p>
  <p data-lake-id="u58f96020" id="u58f96020"><span data-lake-id="u7717201c" id="u7717201c">​</span><br></p>
  <p data-lake-id="ud57a9a52" id="ud57a9a52"><span data-lake-id="u78f0d9b0" id="u78f0d9b0">关于Hystrix和Sentinel的对比，在Sentinel的官网上有一篇文章写的挺详细的： </span><a href="https://sentinelguard.io/zh-cn/blog/sentinel-vs-hystrix.html" target="_blank" data-lake-id="u6590293d" id="u6590293d"><span data-lake-id="u0faebf95" id="u0faebf95">https://sentinelguard.io/zh-cn/blog/sentinel-vs-hystrix.html</span></a><span data-lake-id="u42e6e181" id="u42e6e181"> </span></p>
  <p data-lake-id="ue2d0e4fb" id="ue2d0e4fb"><span data-lake-id="u514ca3be" id="u514ca3be">​</span><br></p>
  <p data-lake-id="u32a750d9" id="u32a750d9"><span data-lake-id="u43263f64" id="u43263f64">二者的主要差异如下表：</span></p>
  <p data-lake-id="u67f4e085" id="u67f4e085"><span data-lake-id="ud794d89e" id="ud794d89e">​</span><br></p>
  <p data-lake-id="u4c5a228e" id="u4c5a228e"><img src="https://cdn.nlark.com/yuque/0/2023/png/5378072/1683888160298-f5d23fd4-4b47-43a8-a6ad-911bff7b1d4e.png?x-oss-process=image%2Fwatermark%2Ctype_d3F5LW1pY3JvaGVp%2Csize_44%2Ctext_SmF2YSA4IEd1IFA%3D%2Ccolor_FFFFFF%2Cshadow_50%2Ct_80%2Cg_se%2Cx_10%2Cy_10"></p>
 </body>
</html>